<nz-layout style="height: 100%">
  <nz-sider nzCollapsible [(nzCollapsed)]="isCollapsed" [nzCollapsedWidth]="0" [nzBreakpoint]="'lg'">
    <div class="logo">
    </div>
    <ul nz-menu [nzTheme]="'dark'" [nzMode]="isCollapsed?'vertical':'inline'">
      <li  nz-menu-item [nzSelected]="url.indexOf('admin')!=-1" (click)="menuClick(1)"><span><i
        class="anticon anticon-team"></i><span
        class="nav-text">管理员</span></span></li>
    </ul>
  </nz-sider>
  <nz-layout>
    <nz-header style="background: #fff; padding-left:16px;">
      <div nz-row>
        <div nz-col [nzSpan]="8">
          <h2>{{app.company}}管理系统</h2>
        </div>
        <div nz-col [nzSpan]="16" style="text-align: right">
          <nz-dropdown>

            <a nz-dropdown>
              你好,{{userInfo.admin.adminName}} <i class="anticon anticon-down"></i>
            </a>
            <ul nz-menu>
              <li nz-menu-item>
                <a (click)="resetPsw()">修改密码</a>
              </li>
              <li nz-menu-item>
                <a (click)="logout()">注销登录</a>
              </li>
            </ul>
          </nz-dropdown>
        </div>
      </div>
    </nz-header>

    <nz-content style="margin:24px 16px 0;overflow: initial;">
      <div style="padding:24px; background: #fff;">
        <router-outlet></router-outlet>
      </div>
    </nz-content>
    <nz-footer style="text-align: center;">Copyright © 2017-2018 {{app.company}} All Rights Reserved.&nbsp;&nbsp;&nbsp;&nbsp;沪ICP备*****号</nz-footer>
  </nz-layout>
</nz-layout>
